package com.liu.shrio02.service.impl;

import com.liu.shrio02.mapper.UserMapper;
import com.liu.shrio02.model.User;
import com.liu.shrio02.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserMapper userMapper;



    @Override
    public User login(User user) {
        return userMapper.login(user);
    }

    @Override
    public User loginByname(String username) {
        return userMapper.loginByname(username);
    }
}
